package com.jeecg.student.service;
import java.io.Serializable;

import org.jeecgframework.core.common.service.CommonService;

import com.jeecg.student.entity.GStudentEntity;

public interface GStudentServiceI extends CommonService{
	
 	public void delete(GStudentEntity entity) throws Exception;
 	
 	public Serializable save(GStudentEntity entity) throws Exception;
 	
 	public void saveOrUpdate(GStudentEntity entity) throws Exception;
 	
    /**
     * 检查学生是否存在
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GStudentEntity check(String nmae, String password) throws Exception;
    
    /**
     * 通过姓名和密码查询学生
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GStudentEntity getStudent(String nmae, String password) throws Exception;
    /**
     * 通过id学生
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GStudentEntity getStudent(String id) throws Exception;
}
